import { http } from "@/utils/http";

/** 金融商品列表
 * @param page pageSize type keyWord
 */
export const getNewsList = (data?: any) => {
  return http.request("post", "/admin/common/new/list", { data });
};
/**
 * 添加新闻
 * @param title type banner content status author
 */
export const addNews = (data?: any) => {
  return http.request("post", "/admin/common/new/add", { data });
};
/**
 * 更新新闻
 * @param newsId title type banner content status author
 */
export const setNews = (data?: any) => {
  return http.request("post", "/admin/common/new/set", { data });
};
/**
 * 新闻详情
 * @param newsId title type banner content status author
 */
export const getNews = (newsId: number) => {
  return http.request("post", "/admin/common/new/info", { data: { newsId } });
};
